import { IAOP } from "../Interfaces/IDesignMode";
/**
 * AOP实现
 */
export default class AOP implements IAOP {
  interceptMethod(orign: Function, before: Function, after: Function): any {
    var fun = () => {
      if (before) before.apply(arguments);
      orign.apply(arguments);
      if (after) after.apply(arguments);
    };
    return fun;
  }
}
